/*----------------------------------------------------------------------------------------
*
*  Copyright 2019, Gao Hai Hui, <fromzeropoint@126.com>.  All rights reserved.
*  https://gitee.com/helloworldghh/xoskit.git
*  Use of this source code is governed by a MIT license
*  that can be found in the License file.
*
----------------------------------------------------------------------------------------*/
#ifndef __E0FF3C9D_799B_4BDD_A0A9_A4DF3FE5F93C__
#define __E0FF3C9D_799B_4BDD_A0A9_A4DF3FE5F93C__

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace xos_common
{

	///////////////////////////////////////////////////////////////////////////////////////////////////////
	// 
	// malloc from mem pool
	// 
	class i_alloc : public xos::i_release
	{
	protected:
		virtual ~i_alloc(){}

	public:
		virtual void * my_malloc( size_t size ) = 0;
		virtual void my_free( void *address ) = 0;
	};

} // xos_common

#endif // __E0FF3C9D_799B_4BDD_A0A9_A4DF3FE5F93C__
